From 4f50e171a08a39b2b3db5e50960a1525870a1797 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Sun, 22 Nov 2009 17:10:39 +0000 Subject: [PATCH] Increase the default size of hash tables to 512 entries. This avoids resizing of the hash tables for all typical usage scenarios and thus avoids a potential race condition in unlocked lookups. --- babl/babl-hash-table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/babl/babl-hash-table.c b/babl/babl-hash-table.c index a3f8364..8afc3aa 100644 --- a/babl/babl-hash-table.c +++ b/babl/babl-hash-table.c @@ -23,7 +23,7 @@ #include "config.h" #include "babl-internal.h" -#define BABL_HASH_TABLE_INITIAL_MASK 0x7F +#define BABL_HASH_TABLE_INITIAL_MASK 0x1FF /* 511 */ /* static functions declarations */ static inline int -- 2.30.2